public class Declarations {

	private Declaration dec;
	private Declarations decSeq;

	public Declarations(Tokens tokens) {
		this.decSeq = null;
		this.parse(tokens);
	}
	
	public void parse(Tokens tokens) {
		// check for "int"
		if(tokens.getToken() == 4){
			this.dec = new Declaration(tokens);
		} else {
			System.err.println("There must be at least one variable declared starting " + 
					"with keyword \"int\"");
			System.exit(0);
		}
		// if there are additional declarations, send to a new declaration sequence
		if(tokens.getToken() == 4){
			this.decSeq = new Declarations(tokens);
		}
	}
}